<?php


/*
 * Created on 27.08.2009
 *
 * by MasterGenny
 */

/**
* Value object of team with all attributes in one object 
*/
class PropertyVO {

	public $key;

	public $soll;

	public $ist;

	public $fixdate;

	public $updated;

	public function __construct() {
		$this->key = 'xx_0';
		$this->soll = 'Sat-Sun|Sun-Mon';
		$this->ist = 'Mon';
		$this->fixdate = '2009-09-05 12:13:55';
		$this->updated = 0;		
		
	}

	public function __get($pMemberName) {
		$member = $pMemberName;
		if (!isset ($this-> $member)) {
			throw new UnknownMemberException(__CLASS__, $pMemberName);
		} else {
			return $this-> $member;
		}
	}

	public function __set($pMemberName, $pValue) {
		$member = $pMemberName;
		if (!isset ($this-> $member)) {
			throw new UnknownMemberException(__CLASS__, $pMemberName);
		} else {
			$this-> $member = $pValue;
		}
	}
	
	public function show() {
		$members = get_object_vars($this);
		echo "Property [";
		foreach ($members as $key => $value) {
			printf("%s= %s ", $key, $value);
		}
		echo "] <br/>";
	}
	
	public function getObjectVars() {
		return get_object_vars($this);
	}
}
?>
